﻿using System.Text;

namespace ICalendar
{
    public class EventCollection : System.Collections.ObjectModel.Collection<Event>
    {
        public  string ToString(string method)
        {
            var strItems = new StringBuilder();
            foreach (var item in this)
            {
                strItems.Append(item.ToString(method));
            }

            return strItems.ToString();
        }

        public override string ToString()
        {
           return ToString(null);
        }
    }
}
